import api from '../utils/api.js'
// 查询所有的购物车
export const login = (data) => {
	return api.request({
		url: '/user/login',
		method: 'post',
		data
	})
}
export const loginStore = (data) => {
	return api.request({
		url: '/loginStore',
		method: 'post',
		data
	})
}
export const updateStore = (data) => {
	return api.request({
		url: '/updateStore',
		method: 'post',
		data
	})
}
export const queryUsersByPrarm = (data) => {
	return api.request({
		url: '/user/queryUsersByPrarm',
		method: 'post',
		data
	})
}

export const sendWDCode = (data) => {
	return api.request({
		url: '/sendWDCode/'+data,
		method: 'get'
	})
}
export const addUser = (data) => {
	return api.request({
		url: '/user/saveUser',
		method: 'post',
		data
	})
}
export const code = (data) => {
	return api.request({
		url: '/send/'+data,
		method: 'get'
	})
}
//微信获取open-id
export const miniWxLogin = (data) => {
	return api.request({
		url: '/user/miniWxLogin?code='+data,
		method: 'get'
	})
}
//微信获取open-id
export const miniWxLoginSt = (data) => {
	return api.request({
		url: '/user/miniWxLoginSt?code='+data,
		method: 'get'
	})
}